package com.ruoyi.cems.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 应急通知对象 bms_emergency_notice
 * 
 * @author ruoyi
 * @date 2024-07-23
 */
@Data
@ApiModel(description = "应急通知对象")
public class BmsEmergencyNotice extends BmsBaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 流水号 */
    @Excel(name = "流水号")
    @ApiModelProperty("流水号")
    private String no;

    /** 飞机 */
    @Excel(name = "飞机")
    @ApiModelProperty("飞机")
    private String airport;

    /** 架机 */
    @Excel(name = "架机")
    @ApiModelProperty("架机")
    private String cantry;

    /** 任务单 */
    @Excel(name = "任务单")
    @ApiModelProperty("任务单")
    private String taskForm;

    /** 任务内容 */
    @Excel(name = "任务内容")
    @ApiModelProperty("任务内容")
    private String taksContent;

    /** 应急场景 */
    @Excel(name = "应急场景")
    @ApiModelProperty("应急场景")
    private String view;

    /** 响应等级 */
    @Excel(name = "响应等级")
    @ApiModelProperty("响应等级")
    private String responseLevel;

    /** 行动等级 */
    @Excel(name = "行动等级")
    @ApiModelProperty("行动等级")
    private String actionLevel;

    /** 备注 */
    @Excel(name = "备注")
    @ApiModelProperty("备注")
    private String remark;

    /** 状态 */
    @Excel(name = "状态")
    @ApiModelProperty("状态（新建、已启动、已结束、已关闭）")
    private String status;

    @ApiModelProperty("启动时间")
    private Date startTime;

    /** 应急变量控制表ID */
    @Excel(name = "应急变量控制表ID")
    @ApiModelProperty("应急变量控制表ID")
    private String vcId;

    @ApiModelProperty("应急关联人员")
    private List<BmsWorkChecklists> bmsWorkChecklists;

    @ApiModelProperty("任务单号")
    private String taskNo;

    @ApiModelProperty("外呼结果，-1：用户名或密码错误；0：外呼请求失败；1：外呼请求成功")
    private Integer callSuccess;

    @ApiModelProperty("外呼请求日志ID")
    private Integer tclId;

    @ApiModelProperty("外呼请求结果")
    private String callMsg;

    @ApiModelProperty("外呼查询结果，0：查询请求错误；1：查询请求成功；")
    private Integer searchSuccess;

    private boolean isManager;

    private String userId;

    private String userName;

    private String userJobNumber;

    private String unitCode;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("ID", getID())
            .append("REVISION", getREVISION())
            .append("createdBy", getCreatedBy())
            .append("createdTime", getCreatedTime())
            .append("updatedBy", getUpdatedBy())
            .append("updatedTime", getUpdatedTime())
            .append("no", getNo())
            .append("airport", getAirport())
            .append("cantry", getCantry())
            .append("taskForm", getTaskForm())
            .append("taksContent", getTaksContent())
            .append("view", getView())
            .append("responseLevel", getResponseLevel())
            .append("actionLevel", getActionLevel())
            .append("status", getStatus())
            .append("vcId", getVcId())
            .toString();
    }
}
